/*
 * Copyright 2010 bedatadriven
 *
 *    Licensed under the Apache License, Version 2.0 (the "License");
 *    you may not use this file except in compliance with the License.
 *    You may obtain a copy of the License at
 *
 *        http://www.apache.org/licenses/LICENSE-2.0
 *
 *    Unless required by applicable law or agreed to in writing, software
 *    distributed under the License is distributed on an "AS IS" BASIS,
 *    WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 *    See the License for the specific language governing permissions and
 *    limitations under the License.
 */

/**
 * JacobGen generated file --- do not edit
 *
 * (http://www.bigatti.it/projects/jacobgen)
 */
package com.bedatadriven.mso.excel;

import com.bedatadriven.mso.core.MsoColorType;
import com.bedatadriven.mso.core.MsoThemeColorIndex;
import com.google.gwt.core.client.JavaScriptObject;

/** Wrapper for Excel.ColorFormat*/
public class ColorFormat extends JavaScriptObject {

	protected ColorFormat() { }
	public native final Object getApplication()/*-{
		return this.Application;
	}-*/;

	public native final int getCreator()/*-{
		return this.Creator;
	}-*/;

	public native final Object getParent()/*-{
		return this.Parent;
	}-*/;

	public native final int getRGB()/*-{
		return this.RGB;
	}-*/;

	public native final void setRGB(int value)/*-{
		this.RGB = value;
	}-*/;

	public native final int getSchemeColor()/*-{
		return this.SchemeColor;
	}-*/;

	public native final void setSchemeColor(int value)/*-{
		this.SchemeColor = value;
	}-*/;

	protected native final int _getType()/*-{
		return this.Type;
	}-*/;

	public final MsoColorType getType(){
		return MsoColorType.valueOf(_getType());
	}
	public native final float getTintAndShade()/*-{
		return this.TintAndShade;
	}-*/;

	public native final void setTintAndShade(float value)/*-{
		this.TintAndShade = value;
	}-*/;

	protected native final int _getObjectThemeColor()/*-{
		return this.ObjectThemeColor;
	}-*/;

	public final MsoThemeColorIndex getObjectThemeColor(){
		return MsoThemeColorIndex.valueOf(_getObjectThemeColor());
	}
	protected native final void _setObjectThemeColor( int value)/*-{
		this.ObjectThemeColor = value;
	}-*/;

	public final void setObjectThemeColor(MsoThemeColorIndex value){
		_setObjectThemeColor(value.getValue());
	}
}
